package com.hsgene.consumables.mapper;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
 * 通用Mapping接口
 *
 * @Author: wangxuefeng@hsgene.com
 * @Description:
 * @Date: Created in 15:19 2018/6/29
 * @Modified By:
 */
public interface BaseMapper<T> extends Mapper<T>, MySqlMapper<T> {
    /**
     * 删除信息
     *
     * @param id id
     * @return
     */
    boolean deleteInfo(@Param("id") String id);

    /**
     * 更新信息
     *
     * @param data 数据对象
     * @return
     */
    boolean updateInfo(T data);
}
